import java.awt.Dimension;
import java.awt.Image;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;
import javax.swing.ImageIcon;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;


public class TinCDMain {
	
	public static void main(String[] args) {
		
		
		setUpMainWindow();

	}
	
	public static void setUpMainWindow()
	{
		 try {
			UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (InstantiationException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IllegalAccessException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (UnsupportedLookAndFeelException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		//Order of drawing matters here! Main frame needs focus!
		MainFrame TinCD = new MainFrame("This is not ChemDraw Version 0.X");
							
		TinCDCanvas twoDCanvas = new TinCDCanvas(TinCD);
		TinCD.add(twoDCanvas);
		
		setUpToolBar(twoDCanvas);
		TinCD.getCanvas(twoDCanvas);
		TinCD.requestFocus();
		
			
	}
	
	public static void setUpToolBar(TinCDCanvas twoDCanvas)
	{
		ToolKitBar toolKit = new ToolKitBar("TinCD ToolKit",twoDCanvas);
	}
	

}
